package ar.com.solidussource.howmuchmobile.activities.menu;

import android.content.Intent;
import ar.com.solidussource.howmuchmobile.R;
import ar.com.solidussource.howmuchmobile.activities.maps.HowMuchMapActivity;
import ar.com.solidussource.howmuchmobile.activities.generic.MenuActivity;

/**
 * Created with IntelliJ IDEA.
 * User: FT31270775
 * Date: 06/11/12
 * Time: 11:54
 * To change this template use File | Settings | File Templates.
 */
public class MainActivity extends MenuActivity {

    @Override
    public String getMenuOptionTitle() {
        return "Principal";
    }

    @Override
    public String[] getMenuOptions() {
        return new String[]{"Ubicacion","Productos","Mapa", "AYUDA"};
    }

    @Override
    public Integer[] getMenuOptionIcons() {
        return new Integer[]{R.drawable.home, R.drawable.cart, R.drawable.map, R.drawable.help};
    }

    @Override
    public void onMenuOptionClick(int position) {
        if(position == 0){
            Intent intent = new Intent(MainActivity.this, UbicacionMenu.class);
            //intent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
            startActivity(intent);
        }
        if(position == 1){
            Intent intent = new Intent(MainActivity.this, ProductMenuActivity.class);
            startActivity(intent);
        }
        if(position == 2){
            Intent intent = new Intent(MainActivity.this, HowMuchMapActivity.class);
            startActivity(intent);
        }
    }
}